<?php

class Users_Table_Access_Rule extends Workset_Db_Table {

    protected $_name = 't_access_rule';

    protected $_primary = array('role_id', 'resource_id', 'privilege_id');

    protected $_referenceMap = array(
        'role' => array(
            'columns' 		=> 'role_id',
            'refTableClass' => 'Users_Table_Access_Role',
            'refColumns' 	=> 'id'
        ),
        'privilege' => array(
            'columns' 		=> 'privilege_id',
            'refTableClass' => 'Users_Table_Access_Privilege',
            'refColumns' 	=> 'id'
        ),
        'resource' => array(
            'columns' 		=> 'resource_id',
            'refTableClass' => 'Users_Table_Access_Resource',
            'refColumns' 	=> 'id'
        ),
    );

    protected $_dependentTables = array();

}